package com.own.business.login.phone.core.config;

import com.own.business.login.phone.core.service.LoginPhoneService;
import com.own.business.login.phone.core.service.impl.LoginPhoneServiceImpl;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * LoginPhoneAutoConfig
 *
 * @author chenxueli
 * @date 2023-06-25 17:01:00
 */
@Component
public class LoginPhoneAutoConfig {

    @Bean
    @ConditionalOnMissingBean(LoginPhoneService.class)
    public LoginPhoneService loginPhoneService() {
        return new LoginPhoneServiceImpl();
    }

}
